function Gui_MoPop(doc, container, width, height, user, date, options) {
  this._doc = doc;
  this._container = container;
  this._width = (width) ? width : 0;
  this._height = (height) ? height: 0;
  this._user = user;
  this._date = date;
  this._options = options;
  this._unique = MiscUtils.unique();
  
  this._createElements();
  this._gui = Api_MoPop.gui(this._unique);
}

Gui_MoPop.prototype._createElements = function() {
  var div, div2;
  
  var size = DOMUtils.xDocSize();
  
  div = document.createElement('div');
  div.id = this._unique + '_background';

  
  div.style.backgroundImage = (this._options && this._options.color == 1) ? 'url(image/pop/bb.png)' : 'url(image/pop/bw.png)';
  div.style.backgroundRepeat = 'repeat';
  div.style.width = size.w + 'px';
  div.style.height = size.h + 'px';
  div.style.position = 'absolute';
  div.style.display = 'block';
  div.style.top = '0px';
  div.style.left = '0px';
  
  this._container.appendChild(div);
  
  div2 = document.createElement('div');
  div2.id = this._unique + '_content';
  
  div2.style.backgroundImage = (this._options && this._options.color == 1) ? 'url(image/pop/bw.png)' : 'url(image/pop/bb.png)';
  div2.style.backgroundRepeat = 'repeat';
  div2.style.position = 'absolute';
  div2.style.display = 'block';
  div2.style.top = (this._options && this._options.pos) ? this._options.pos[1] + 'px' : '0px';
  div2.style.left = (this._options && this._options.pos) ? this._options.pos[0] + 'px' : '0px';
  
  div.appendChild(div2);
  
  if (this._options && this._options.content) {
    div2.appendChild(this._options.content);
  }
};